// AAA.h : Declaration of the CAAA

#ifndef __AAA_H_
#define __AAA_H_

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CAAA
class ATL_NO_VTABLE CAAA : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CAAA, &CLSID_AAA>,
	public IDispatchImpl<IAAA, &IID_IAAA, &LIBID_ATLDISPLib>,
	public IDispatchImpl<IBBB, &IID_IBBB, &LIBID_ATLDISPLib>
{
public:
	CAAA()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_AAA)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CAAA)
	COM_INTERFACE_ENTRY(IAAA)
	COM_INTERFACE_ENTRY(IBBB)
	COM_INTERFACE_ENTRY2(IDispatch,IAAA)
END_COM_MAP()

// IAAA
public:
	STDMETHOD(Add)(/*[in]*/ long n1,/*[in]*/ long n2, /*[out,retval]*/ long *pnSum);
	STDMETHOD(Sub)(/*[in]*/ long n1,/*[in]*/ long n2, /*[out,retval]*/ long *pnSum);
	STDMETHOD(get_BBB)(/*[out, retval]*/ LPDISPATCH *pVal);

	
};

#endif //__AAA_H_
